//
//  SIView.m
//  UIViewTest
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 司昌宝. All rights reserved.
//

#import "SIView.h"
#import "SILabel.h"
#import "SITextField.h"
@implementation SIView

-(instancetype)initWithFrame:(CGRect)frame withText:(NSString *)text1 withAnotherText:(NSString *)text2{
    self = [super initWithFrame:frame];
    if (self) {
        SILabel *label = [[SILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 50) withText:text1];
        self.label = label;
        SITextField *textField = [[SITextField alloc] initWithFrame:CGRectMake(120, 0, 200, 50) withText:text2];
        self.textField = textField;
        [self addSubview:self.label];
        [self addSubview:self.textField];
        
        [label release];
        [textField release];
    }
    return  self;
}



@end
